home *** CD-ROM | disk | FTP | other *** search
-
- // JavaScript wrapper for r3frpart.h
- // Auto generated file, do not modify by hand
- // Copyright ⌐ 2004, Realsoft Graphics Oy
-
- var R3_FRPART_H = 1;
- include("real/raytr/r3frsurf.js")
- include("oops/r3vector.js")
- include("real/frio/r3raysmp.js")
-
-
- var R3CLID_FRPARTICLE = 702;
-
-
-
-
- // Description: evaluate geometric description of the particle object to the raysample.
- // p1: Object, raysample to which properties are evaluated
-
- R3FRPAM_RENDER = 702000;
-
- function mR3FRPAM_RENDER(p1) {
- DoA2(this.r3obj, 702000, p1, R3TID_OBJECT, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: Evaluate particle properties to a raysample in a point defined * by R3CLID_ASCCHANNEL of the
- // raysample. Typically, a particle object defines geometry * related information. Position is already known when calling
- // this method, so surface * normal information may be the most natural channel to be computed.
- // p3: Object, ptr to a raysample.
-
- R3FRPAM_EVALUATEPOINTPROPERT = 702002;
-
- function mR3FRPAM_EVALUATEPOINTPROPERT(p3) {
- DoA(this.r3obj, 702002, p3, R3TID_OBJECT, 0);
- }
-
- // Description: render points of the particle to a z buffer at a given resolution. * This
- // method is used for finding out the shape of the particle in the target image.
- // Actual shading related property evaluation will happen later by R3FRPAM_EVALUATEPOINTPROPERTIES. * The default action
- // of the base class is projecting the position (of one point) to z buffer, finding
- // the distance and sending the R3ZBM_PIXEL method to draw one 'pixel'. If the particle
- // covers * several pixels, the particle class may either use existing z buffer drawing methods
- // or compute * its interior pixels and use pixel drawing methods. * The default class
- // actions are in more detail: * * R3VECTOR res; * R3FLOAT fade = 0.0; *
- // if(!p2) return obj; * R3MxTransform(&res, p3->modelview, p); * if(msg->projection!=R3PRP_ORTHOGONAL) res.t = sqrt(PMUL(p,p)); * *
- // return R3SendMsgA(p1, R3ZBM_PIXEL, &fade, &res); *
- // p1: Object, ptr to a z buffer object see friozbuffer.h
-
- R3FRPAM_RENDERPOINTS = 702003;
-
- function mR3FRPAM_RENDERPOINTS(p1) {
- DoA2(this.r3obj, 702003, p1, R3TID_OBJECT, 0, 0, R3TID_INTEGER, 0);
- }
-
- // Description: enumerate all channels that should be included in the drawport in R3FRPAM_RENDER method. * by
- // sending R3SendMsgA(retobj, retmth, channelname)
- // p1: Object, retobj
- // p3: Integer, retmth
-
- R3FRPAM_ENUMNEEDEDCHANNELS = 702004;
-
- function mR3FRPAM_ENUMNEEDEDCHANNELS(p1, p3) {
- DoA2(this.r3obj, 702004, p1, R3TID_OBJECT, 0, p3, R3TID_INTEGER, 0);
- }
-
-
-
-
- R3FRPAA_RenderClasses = 702500;
- function GetR3FRPAA_RenderClasses() {
- return R3Get(this.r3obj, R3FRPAA_RenderClasses, R3TID_INTEGER, R3TNF_ARRAY);
- }
-
- R3FRPAA_Cog = 702501;
- function GetR3FRPAA_Cog() {
- return R3Get(this.r3obj, R3FRPAA_Cog, R3TID_VECTOR, R3TNF_ARRAY);
- }
-
-
-
- function r3Frparticle () {
- this.base = r3God;
- if(arguments.length) {
- this.base(R3CLID_FRPARTICLE, arguments);
- }
- // Methods
- this.RENDER=mR3FRPAM_RENDER;
- this.EVALUATEPOINTPROPERT=mR3FRPAM_EVALUATEPOINTPROPERT;
- this.RENDERPOINTS=mR3FRPAM_RENDERPOINTS;
- this.ENUMNEEDEDCHANNELS=mR3FRPAM_ENUMNEEDEDCHANNELS;
-
- // Attributes
- this.GetRenderClasses=GetR3FRPAA_RenderClasses;
- this.GetCog=GetR3FRPAA_Cog;
- }
-
- r3Frparticle.prototype=new r3Frsurface;
- // r3frpart.h_H